From 27afd624cdeb0e57dcc58e8d55e4af8d72777b0b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 8 Aug 2015 10:02:49 +0200 Subject: [PATCH] HighContrast: Improve GtkCalendar drawing Make days gray that are not in the current month. https://bugzilla.gnome.org/show_bug.cgi?id=753357 --- gtk/theme/HighContrast/_common.scss | 3 +++ gtk/theme/HighContrast/gtk.css | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss index 893d0efb48..ef3c22d39d 100644 --- a/gtk/theme/HighContrast/_common.scss +++ b/gtk/theme/HighContrast/_common.scss @@ -2079,6 +2079,9 @@ GtkCalendar { border-bottom-color: mix($backdrop_borders_color,$backdrop_bg_color,50%); } } + + &:inconsistent, &:inconsistent:backdrop, + &.highlight, &.highlight:backdrop { color: gtkalpha(currentColor, 0.55); } } /*********** diff --git a/gtk/theme/HighContrast/gtk.css b/gtk/theme/HighContrast/gtk.css index 1d4b653dd1..559205d70c 100644 --- a/gtk/theme/HighContrast/gtk.css +++ b/gtk/theme/HighContrast/gtk.css @@ -2281,6 +2281,8 @@ GtkCalendar { GtkCalendar.header:backdrop { background-image: linear-gradient(to bottom, #fff); border-bottom-color: #c5c5c5; } + GtkCalendar:inconsistent, GtkCalendar:inconsistent:backdrop, GtkCalendar.highlight, GtkCalendar.highlight:backdrop { + color: alpha(currentColor,0.55); } /*********** * Dialogs * -- 2.30.2